221fd1a444f7b19d3a8c9558fe44cc6ec03d4aa3,src/org/basex/gui/view/map/StripAlgo.java,StripAlgo,calcMap,#MapRect#MapList#number#number#number#,12
Before Change
}
// if ar has increased discard tmp and add row
if(lineRatio(tmp) > lineRatio(row)) {
// add rects of row to solution
rects.add(row);
// preparing next line
After Change
ml.list[i], l));
x += w;
}
tmpratio = lineRatio(tmp);
// if ar has increased discard tmp and add row
if(tmpratio > rowratio) {
// add rects of row to solution
rects.add(row);
rowratio = Double.MAX_VALUE;
// preparing next line
hh -= row.get(0).h;
yy += row.get(0).h;
tmp.reset();
row.reset();
start = ni;
sumweight -= weight - ml.weight[ni];
weight = 0;
// sometimes there has to be one rectangles to fill the left space
if(ne == ni + 1) {
row.add(new MapRect((int) xx, (int) yy, (int) ww, (int) hh,
ml.list[ni], l));
break;
}
} else {
row = tmp;
rowratio = tmpratio;
ni++;
}
}